package com.yaoxiaowen.project2.util;


import com.yaoxiaowen.project2.util.log.debug.DebugState;

/**
 * author: create by YaoWen in 2015/11/9 11:32
 * Q Q :2669932513
 */


public class ExceptionUtil {
    public static void throwRuntimeException(String msg){
        if (DebugState.DEBUG){
            throw new RuntimeException(msg);
        }
    }

    public static void throwRuntimeException(String TAG, String msg){
        if (DebugState.DEBUG){
            throw new RuntimeException(TAG + "\t" + msg);
        }
    }

    public static void throwRuntimeExceptionAnytime(String msg){
        throw new RuntimeException(msg);
    }

    public static void throwRuntimeExceptionAnytime(String TAG, String msg){
        throw new RuntimeException(TAG + "\t" + msg);
    }
}
